home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / Amos / AMOSList-1297 / AMOSLIST / text0107.txt < prev    next >
Encoding:
Text File  |  1998-06-24  |  1.7 KB  |  53 lines

  1.  
  2.  
  3. >>>Has anyone got a util to convert AMOS source into an ASCII file?
  4. >>>Is it possible to write an AMOS program which can in turn load a source 
  5. and
  6. >>> save it as ASCII?
  7.  
  8. > > Load your prg in the editor. Select all from the block menu. Store from
  9.  >> block menu. Save block as ASCII. Tada.
  10.  
  11. >I think I wanted something to do it on the fly. He said he was looking for
  12. >a tool to add to DOpus and display the sources as ASCII files, without
  13. >storing the ASCII files on the hd.
  14.  
  15. Thats exactly what I meant.
  16. I attempted to start writing a conversion program lst night but didn't get 
  17. very far.
  18. I was trying to get it to just do REM statements initially but had trouble 
  19. splitting up the file into the bits I wanted.
  20.  
  21. So far I have got a header of 20 chars (using AMOS Pro v2 - probably 
  22. different on other versions) and a trailer of 10(ish) chars.
  23.  
  24. If I strip these bits of I am left with the main program in some encrypted 
  25. format.
  26. Coding a small program...
  27.  
  28. Rem a
  29. Rem b
  30.  
  31. ...shows me that the HEX string for the REM statement.
  32. Now if my program is just 1 line then I get approx 8 character back which 
  33. seem to map to the REM followed by some junk followed by the actual remark 
  34. (a).
  35. With the program above I would expect just for the string to be repeated 
  36. with b replacing a and maybe a decimal 10 and 13 stuck inbetween - no such 
  37. luck though!
  38. It seems that it just sticks what it likes in the file.
  39.  
  40. At the rate I am going its not looking very promising - it would probably 
  41. take me a couple of years to find out the format.
  42.  
  43. Do I recall correctly that the source for Amos is now PD?
  44. If so, does anyone know where I could get it.
  45. I think if I had the source then I could just pull out the LOAD, BLOCK ALL 
  46. and SAVE AS ASCII commands and stick them into an executable .
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.